package java9_23zy;

public class Shop {
    private String discount;
    private String factoryaddr;
    private String itemno;
    private String name;
    private String price;
    private String stockcount;
    private String unit;

    public Shop() {

    }

    public Shop(String discount, String factoryaddr, String itemno, String name, String price, String stockcount, String unit) {
        this.discount = discount;
        this.factoryaddr = factoryaddr;
        this.itemno = itemno;
        this.name = name;
        this.price = price;
        this.stockcount = stockcount;
        this.unit = unit;
    }

    public String getItemno() {
        return itemno;
    }

    public void setItemno(String itemno) {
        this.itemno = itemno;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String  price) {
        this.price = price;
    }

    public String getStockcount() {
        return stockcount;
    }

    public void setStockcount(String  stockcount) {
        this.stockcount = stockcount;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getDiscount() {
        return discount;
    }

    public void setDiscount(String discount) {
        this.discount = discount;
    }

    public String getFactoryaddr() {
        return factoryaddr;
    }

    public void setFactoryaddr(String factoryaddr) {
        this.factoryaddr = factoryaddr;
    }

    @Override
    public String toString() {
        return "商品{" +
                "打折='" + discount + '\'' +
                ", 地址='" + factoryaddr + '\'' +
                ", 编号='" + itemno + '\'' +
                ", 名字='" + name + '\'' +
                ", 价格='" + price + '\'' +
                ", 库存='" + stockcount + '\'' +
                ", 单位='" + unit + '\'' +
                '}';
    }
}
